From 493660a296af3b8a140714988ddece4199818a04 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Mon, 8 Aug 2022 00:03:51 +0400 Subject: [PATCH] scrolledwindow: Lower the scroll multiplier c68247f63ba1db8849eb1679e53a64f7f2633973 introduced a scroll multiplier, intended to be significantly lower than the GTK 4.6 behavior but higher than 1. However, it was _higher_ than 4.6, since 4.6 also had a permanent 1/10 multiplier in GDK, so the cited multiplier values were really 6.4 and 9.7. --- gtk/gtkscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 116fc9645a..bc48c6c6c7 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -201,7 +201,7 @@ /* Scrolled off indication */ #define UNDERSHOOT_SIZE 40 -#define MAGIC_SCROLL_FACTOR (42 / 7 / 1.618033 * 2.718281) +#define MAGIC_SCROLL_FACTOR 2.5 typedef struct _GtkScrolledWindowClass GtkScrolledWindowClass; -- 2.30.2